package com.zcxy.edu.service.impl;

import java.util.List;
import com.zcxy.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zcxy.edu.mapper.EduAllSmsUserLogMapper;
import com.zcxy.edu.domain.EduAllSmsUserLog;
import com.zcxy.edu.service.IEduAllSmsUserLogService;

/**
 * 发送短信配置用户发送记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-02
 */
@Service
public class EduAllSmsUserLogServiceImpl implements IEduAllSmsUserLogService 
{
    @Autowired
    private EduAllSmsUserLogMapper eduAllSmsUserLogMapper;

    /**
     * 查询发送短信配置用户发送记录
     * 
     * @param id 发送短信配置用户发送记录主键
     * @return 发送短信配置用户发送记录
     */
    @Override
    public EduAllSmsUserLog selectEduAllSmsUserLogById(Long id)
    {
        return eduAllSmsUserLogMapper.selectEduAllSmsUserLogById(id);
    }

    /**
     * 查询发送短信配置用户发送记录列表
     * 
     * @param eduAllSmsUserLog 发送短信配置用户发送记录
     * @return 发送短信配置用户发送记录
     */
    @Override
    public List<EduAllSmsUserLog> selectEduAllSmsUserLogList(EduAllSmsUserLog eduAllSmsUserLog)
    {
        return eduAllSmsUserLogMapper.selectEduAllSmsUserLogList(eduAllSmsUserLog);
    }

    /**
     * 新增发送短信配置用户发送记录
     * 
     * @param eduAllSmsUserLog 发送短信配置用户发送记录
     * @return 结果
     */
    @Override
    public int insertEduAllSmsUserLog(EduAllSmsUserLog eduAllSmsUserLog)
    {
        eduAllSmsUserLog.setCreateTime(DateUtils.getNowDate());
        return eduAllSmsUserLogMapper.insertEduAllSmsUserLog(eduAllSmsUserLog);
    }

    /**
     * 修改发送短信配置用户发送记录
     * 
     * @param eduAllSmsUserLog 发送短信配置用户发送记录
     * @return 结果
     */
    @Override
    public int updateEduAllSmsUserLog(EduAllSmsUserLog eduAllSmsUserLog)
    {
        eduAllSmsUserLog.setUpdateTime(DateUtils.getNowDate());
        return eduAllSmsUserLogMapper.updateEduAllSmsUserLog(eduAllSmsUserLog);
    }

    /**
     * 批量删除发送短信配置用户发送记录
     * 
     * @param ids 需要删除的发送短信配置用户发送记录主键
     * @return 结果
     */
    @Override
    public int deleteEduAllSmsUserLogByIds(Long[] ids)
    {
        return eduAllSmsUserLogMapper.deleteEduAllSmsUserLogByIds(ids);
    }

    /**
     * 删除发送短信配置用户发送记录信息
     * 
     * @param id 发送短信配置用户发送记录主键
     * @return 结果
     */
    @Override
    public int deleteEduAllSmsUserLogById(Long id)
    {
        return eduAllSmsUserLogMapper.deleteEduAllSmsUserLogById(id);
    }
}
